package com.ybt.router.core.message;

import java.util.Properties;

public interface IMSDMessage<T>{
    public T getMessage();
    public void setMessage(T msg);
    
    public String getProperty(String key);
    public void setProperty(String key, String value);
    
    public void put(String key, Object value);
    public Object get(String key);
    
    public byte[] getMessageBody();
    public void setMessageBody(byte[] messageBody);
    
    public String getMessageID();
    public void setMessageID(String id);
    
    public long getTimestamp();
    public void setTimestamp(long time);

    public Properties getHeader();
    public void setHeader(Properties header);
    
    public long getReqTimestamp();
    public void setReqTimestamp(long respTimestamp);
    
    public long getRespTimestamp();
    public void setRespTimestamp(long respTimestamp);
}
